package eraserhead.boundary;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 * Class for showing a warning in the form of a {@link JOptionPane}
 * @author Michael Checca
 */
public class WarningWindow {
	/**
	 * Show a warning message box
	 * @param frame {@link JFrame} the warning belongs to, or null if none exists
	 * @param s Warning message to show
	 */
    public static void giveWarning(JFrame frame, String s) {
    	JOptionPane.showMessageDialog(frame, s, "DecisionLines", JOptionPane.WARNING_MESSAGE);
    }
}
